#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

import cgi
import wsgiref.handlers
import os
from google.appengine.api import users
from google.appengine.ext.webapp import template
from google.appengine.ext import webapp
from google.appengine.ext import db
from google.appengine.ext.webapp.util import run_wsgi_app

class WariogameHandler(webapp.RequestHandler):

  def get(self):
	thumbs = ["static/wario0504/1-1.jpg",
			"static/wario0504/1-2.jpg",
			"static/wario0504/1-3.jpg",
			"static/wario0504/1-4.jpg",
			"static/wario0504/1-5.jpg",
			"static/wario0504/1-6.jpg",
			"static/wario0504/1-7.jpg",
			"static/wario0504/1-8.jpg",
			"static/wario0504/1-9.jpg",
			"static/wario0504/1-10.jpg",
			"static/wario0504/1-11.jpg",
			"static/wario0504/1-12.jpg",
			"static/wario0504/1-13.jpg",
			"static/wario0504/1-14.jpg",
			"static/wario0504/1-15.jpg",
			"static/wario0504/1-16.jpg",
			"static/wario0504/1-17.jpg",
			"static/wario0504/1-18.jpg",
			"static/wario0504/1-19.jpg",
			"static/wario0504/1-20.jpg",
			"static/wario0504/1-21.jpg",
			"static/wario0504/1-22.jpg",
			"static/wario0504/1-23.jpg",
			"static/wario0504/1-24.jpg",
			"static/wario0504/1-25.jpg",
			"static/wario0504/1-26.jpg",
			"static/wario0504/1-27.jpg",
			"static/wario0504/1-28.jpg",
			"static/wario0504/1-29.jpg"]
	template_values = {'thumbs' : thumbs,}
	path = os.path.join(os.path.dirname(__file__), 'wariogame.html')
	self.response.out.write(template.render(path, template_values))

